package com.shujia.exer;

public class Scientist extends Farmer {
    double yearBonus;

    public void printYearSalary() {
        System.out.println(basePay * 12 + yearBonus);
    }
}
